package com.hds.common.utils;

import java.util.regex.Pattern;

/**
 * 校验
 *
 * @Author guonan
 * @Email guonan@yewcn.com
 * @Description
 * @Date 2018/7/26 12:10
 */
public class ValidateUtils {
    /**
     * 手机号码校验
     */
    private static String PHONE_NUMBER_REG = "^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\\d{8}$";

    public static boolean phoneReg(String mobile){
        return Pattern.matches(PHONE_NUMBER_REG, mobile);
    }




    public static void main(String[] args) {
        System.out.println(Pattern.matches(PHONE_NUMBER_REG, "1529532122"));
    }

}
